﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WomanMotion.WebApi.Model.Dtos.Match
{
    /// <summary>
    /// 更新比赛DTO
    /// </summary>
    public class UpdateMatchDTO : BaseUpdateDTO
    {
        /// <summary>
        /// 分类ID
        /// </summary>
        [Required(ErrorMessage = "比赛分类ID不能为空")]
        public long Classid { get; set; }

        /// <summary>
        /// 关联赛程Id
        /// </summary>
        [Required(ErrorMessage = "关联赛程Id不能为空")]
        public long Scheduleid { get; set; }

        /// <summary>
        /// 比赛时间
        /// </summary>
        [Required(ErrorMessage = "比赛时间不能为空")]
        public DateTime Starttime { get; set; }

        /// <summary>
        /// 队伍一ID
        /// </summary>
        [Required(ErrorMessage = "队伍一ID不能为空")]
        public long Teamaid { get; set; }

        /// <summary>
        /// 队伍二ID
        /// </summary>
        [Required(ErrorMessage = "队伍二ID不能为空")]
        public long Teambid { get; set; }

        /// <summary>
        /// 队伍一比分
        /// </summary>
        public int Teamascore { get; set; }

        /// <summary>
        /// 队伍二比分
        /// </summary>
        public int Teambscore { get; set; }

        /// <summary>
        /// 观看平台ID
        /// </summary>
        [Required(ErrorMessage = "观看平台ID不能为空")]
        public long Watchid { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }
    }
}
